
let error = [
        {
            path: '/404',
            name: '404',
            component: () => import('@/sys/base/error/404')
        }
    ]
console.log(error)
export function   getRouter(routerData){
        let routers = []
        if(routerData){
            routerData.forEach(res=>{
                routers.push({
                    path: '/'+res.path,
                    name: res.componentName,
                    meta: { keepAlive: true },
                    component: () => import('@/'+res.component)
                })
            })
        }
       // routers.push(error[0])
        return routers
    }








